package srx.open.com.utils;

import android.os.Environment;

/**
 *  一些常量.
 */
public class Constants {
    public static final int LIMIT_PAGE_NUM = 20;
    /**
     * 本地相册
     */
    public static final int LOCAL_PIC_CODE = 0;
    public static final int REQUESTCODE_UPLOADAVATAR_LOCATION = 188;
    /**
     *  照相
     */
    public static final int PHOTO_CODE = 1;
    public static final int REQUESTCODE_UPLOADAVATAR_CAMERA = 189;
    /**
     * 图片裁剪
     */
    public static final int REQUESTCODE_UPLOADAVATAR_CROP = 200;

    /**
     * 我的图片缓存保存目录
     */
    public static final String MY_ROOT_CACHE_DIR = Environment.getExternalStorageDirectory() + "/";//"/mnt/sdcard/";
    public static final String MY_IMAGE_CACHE_RDIR = MY_ROOT_CACHE_DIR + "SanRenXing/imgs";
    /**
     *  下载缓存目录
     */
    public static final String DOWN_CACHE_IMG_DIR = "SanRenXing/Cache";

    public static final int REQUESTCODE_TAKE_CAMERA = 0x000001;//拍照
    public static final int REQUESTCODE_TAKE_LOCAL = 0x000002;//本地图片
    public static final int REQUESTCODE_TAKE_LOCATION = 0x000003;//位置
    public static final String BMOB_PICTURE_PATH = MY_ROOT_CACHE_DIR + "SanRenXing/imgs";
}
